package com.telecom.cms.service;

import java.util.List;

import com.telecom.cms.dao.CampAdvDAO;
import com.telecom.cms.dto.CampAdv;

public class CampAdvMgr {
	public void save(CampAdv campadv){
		(new CampAdvDAO()).insert(campadv);
	}
	
	public void  delete(CampAdv campadv){
		(new CampAdvDAO()).delete(campadv);
	}
	
	public List findall(String campid){
		List result=(new CampAdvDAO()).findAll(campid);
		return result;
	}
	
	public CampAdv findbyid(String campAdvId,String campid){
		CampAdv result=(new CampAdvDAO()).findById(campAdvId,campid);
		return result;
	}
}
